package com.teemor.common.datasource.api.es;

import com.teemor.common.bean.datasource.input.QryArticlesIPo;
import com.teemor.common.bean.datasource.output.QryArticlesOPo;
import com.teemor.common.bean.model.EsOutputModel;
import com.teemor.common.bean.model.EsQueryModel;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;
import java.util.Map;

/**
 * @Description:
 * @author zhoulk
 * @date: 2019/12/14
 */
@RequestMapping("/es/article")
public interface IArticleSearch {

    @RequestMapping(value = "/articles", method = RequestMethod.GET)
    EsOutputModel<QryArticlesOPo> searchArticles(@RequestBody EsQueryModel<QryArticlesIPo> inParam);

    @RequestMapping(value = "/test", method = RequestMethod.GET)
    Map<String, List<QryArticlesOPo>> test();
}
